'''
Created on May 21, 2012

@author: Vu Dao
'''
# property of Search text box
def xpathSearchText():
    return "//input[@name='filter_search']"

# property of Search button
def xpathSearchButton():
    return "//button[text()='Search']"

# property of article check box with article name is inputed
def xpathArticleCheckBox(articleName):
    return "//a[contains(text(),'"+ articleName +"')]/../../td/input[@type='checkbox']"

# property of Publish button
def xpathPublishButton():
    return "//li[@id='toolbar-publish']"

# property of text string when publishing a article successfully
def xpathArticleTextPublishSul():
    return "//li[contains(text(),'1 article published.')]"

# property of status of article publishing a article successfully
def xpathArticleStatusPublishSul(articleName):
    return "//a[contains(text(),'"+ articleName +"')]/../../td[3]/a/span/span[text()='Published']"

# property of Unpublish button
def xpathUnpublishButton():
    return "//li[@id='toolbar-unpublish']" 

# property of text string when unpublishing a article successfully
def xpathArticleTextUnpublishSul():
    return "//li[contains(text(),'1 article unpublished.')]"

# property of status of article unpublishing a article successfully
def xpathArticleStatusUnpublishSul(articleName):
    return "//a[contains(text(),'"+ articleName +"')]/../../td[3]/a/span/span[text()='Unpublished']"

# property of text string when archived a article successfully
def xpathArticleTextArchivedSul():
    return "//li[contains(text(),'1 article archived.')]"

# property of Archived button
def xpathArchivedButton():
    return "//li[@id='toolbar-archive']"

# property of Check-in button
def xpathCheckInButton():
    return "//li[@id='toolbar-checkin']"

# property of text string when check-in a article successfully
def xpathCheckinTextArticleSul(self):
    return "//li[text()='1 article successfully checked in']"